import request from '@/utils/request';
import { stringify } from 'qs';

export default {
	// 查询标签列表
	queryTagList() {
		return request(`/new-common/labelConfig/list`);
	},

	// 查询自定义标签列表
	queryUserTagList() {
		return request(`/new-common/labelConfig/listCustomLabel`);
	},

	// 新增自定义标签
	addUserTag(params) {
		return request(`/new-common/labelConfig/save`, {
			method: 'post',
			data: params
		});
	},

	// 修改自定义标签
	updateUserTag(params) {
		return request(`/new-common/labelConfig/batchUpdate`, {
			method: 'post',
			data: params
		});
	},

	// 删除自定义标签
	delUserTag(params) {
		return request(`/new-common/labelConfig/delete?${stringify(params)}`, {
			method: 'post',
			data: params
		});
	},

}

